#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_pushButton_up_clicked()
{
    int y=ui->label->pos().y()-3;
    int x=ui->label->pos().x();
    ui->label->move(x,y);
}

void Widget::on_pushButton_down_clicked()
{
    int y=ui->label->pos().y()+3;
    int x=ui->label->pos().x();
    ui->label->move(x,y);
}

void Widget::on_pushButton_left_clicked()
{
    int y=ui->label->pos().y();
    int x=ui->label->pos().x()-3;
    ui->label->move(x,y);
}

void Widget::on_pushButton_right_clicked()
{
    int y=ui->label->pos().y();
    int x=ui->label->pos().x()+3;
    ui->label->move(x,y);
}
